package org.blankhole.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * DefaultController: Implementation of the default controller
 *
 * @author Wenlong Meng(wenlong.meng@gmail.com)
 * @version 1.0 at 2012/07/23
 * @since 1.0
 */
@Controller
@RequestMapping("/")
public class DefaultController {

	//local variables
	/**
	 * logger
	 */
	private static Logger logger = Logger.getLogger(DefaultController.class);

	//Logic
	/**
	 * default process request
	 * 
	 * @return
	 */
	@RequestMapping("")
	public String process(Model model){
		logger.debug("exec: proccess()");
		model.addAttribute("name", "Wenlong Meng");
		model.addAttribute("email", "wenlong.meng@gmail.com");
		return "test";
	}
	
}
